FROM python:3.8
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r requirements.txt
COPY . /code/
ENV FLASK_APP main.py
CMD flask run --host=0.0.0.0